"""
URL配置
spider模块的URL路由配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

app_name = 'spider'

router = DefaultRouter()
router.register(r'crawl-tasks', views.CrawlTaskViewSet)
router.register(r'list-items', views.ListItemViewSet)
router.register(r'detail-items', views.DetailItemViewSet)
router.register(r'sub-detail-items', views.SubDetailItemViewSet)

urlpatterns = [
    path('api/v1/', include(router.urls)),
]